@8wave/ai-elements 0.125.0-beta.40 → 0.125.0-beta.42
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_chunks/{Agent-CeZ3bgZ3.js → Agent-DMvYDpLa.js} +123 -122
- package/dist/_chunks/Agent-DMvYDpLa.js.map +1 -0
- package/dist/_chunks/{PkFilePreview-D_1ZgiiA.js → PkFilePreview-DC4iX7Yc.js} +234 -209
- package/dist/_chunks/PkFilePreview-DC4iX7Yc.js.map +1 -0
- package/dist/_chunks/{PkFilePreviewDialog-CI22huzK.js → PkFilePreviewDialog-bcTkTcYk.js} +12 -7
- package/dist/_chunks/PkFilePreviewDialog-bcTkTcYk.js.map +1 -0
- package/dist/_chunks/{PkImageEditorDialog-CAEninFi.js → PkImageEditorDialog-FpbyhV3t.js} +2 -2
- package/dist/_chunks/{PkImageEditorDialog-CAEninFi.js.map → PkImageEditorDialog-FpbyhV3t.js.map} +1 -1
- package/dist/_chunks/{PkSelectionActions-BriGyWCi.js → PkSelectionActions-BbfVZY0R.js} +140 -13
- package/dist/_chunks/PkSelectionActions-BbfVZY0R.js.map +1 -0
- package/dist/_chunks/{PkStreamingMarkdown--9i0feuM.js → PkStreamingMarkdown-COSOOhCg.js} +3 -3
- package/dist/_chunks/{PkStreamingMarkdown--9i0feuM.js.map → PkStreamingMarkdown-COSOOhCg.js.map} +1 -1
- package/dist/_chunks/{PkToolChatFile-BKGUnWrj.js → PkToolChatFile-C_gS0X1j.js} +3 -3
- package/dist/_chunks/{PkToolChatFile-BKGUnWrj.js.map → PkToolChatFile-C_gS0X1j.js.map} +1 -1
- package/dist/_chunks/{PkToolRequestGeolocation-DktrQJvA.js → PkToolRequestGeolocation-CwDQnr7u.js} +2 -2
- package/dist/_chunks/{PkToolRequestGeolocation-DktrQJvA.js.map → PkToolRequestGeolocation-CwDQnr7u.js.map} +1 -1
- package/dist/_chunks/{PkToolRequestOAuthConnection-DkcLwFWl.js → PkToolRequestOAuthConnection-DkrnVowp.js} +2 -2
- package/dist/_chunks/{PkToolRequestOAuthConnection-DkcLwFWl.js.map → PkToolRequestOAuthConnection-DkrnVowp.js.map} +1 -1
- package/dist/_chunks/{PkToolShowArtifact-BfLpz2-W.js → PkToolShowArtifact-fpFtKrZo.js} +2 -2
- package/dist/_chunks/{PkToolShowArtifact-BfLpz2-W.js.map → PkToolShowArtifact-fpFtKrZo.js.map} +1 -1
- package/dist/_chunks/{PkToolShowContactForm-BsF6DFzV.js → PkToolShowContactForm-BAM772bm.js} +2 -2
- package/dist/_chunks/{PkToolShowContactForm-BsF6DFzV.js.map → PkToolShowContactForm-BAM772bm.js.map} +1 -1
- package/dist/_chunks/{PkToolShowForm-w6RvbKEB.js → PkToolShowForm-DJcL0bgw.js} +4 -4
- package/dist/_chunks/{PkToolShowForm-w6RvbKEB.js.map → PkToolShowForm-DJcL0bgw.js.map} +1 -1
- package/dist/_chunks/{PkToolShowImageGallery-BEddh4He.js → PkToolShowImageGallery-DhB_ucYe.js} +2 -2
- package/dist/_chunks/{PkToolShowImageGallery-BEddh4He.js.map → PkToolShowImageGallery-DhB_ucYe.js.map} +1 -1
- package/dist/_chunks/{PkToolShowProductList-k-VB4pUB.js → PkToolShowProductList-DfcJJrOC.js} +2 -2
- package/dist/_chunks/{PkToolShowProductList-k-VB4pUB.js.map → PkToolShowProductList-DfcJJrOC.js.map} +1 -1
- package/dist/_chunks/{PkToolShowSources-CGESvGrm.js → PkToolShowSources-GeWAMHYC.js} +3 -3
- package/dist/_chunks/{PkToolShowSources-CGESvGrm.js.map → PkToolShowSources-GeWAMHYC.js.map} +1 -1
- package/dist/_chunks/{PkToolShowSuggestedReply-DTAq41wP.js → PkToolShowSuggestedReply-gpuWzpoh.js} +2 -2
- package/dist/_chunks/{PkToolShowSuggestedReply-DTAq41wP.js.map → PkToolShowSuggestedReply-gpuWzpoh.js.map} +1 -1
- package/dist/_chunks/{PkToolShowVideo-DeexblEL.js → PkToolShowVideo-CikqhGpT.js} +2 -2
- package/dist/_chunks/{PkToolShowVideo-DeexblEL.js.map → PkToolShowVideo-CikqhGpT.js.map} +1 -1
- package/dist/_chunks/{PkToolShowWebPages-C42FNo8K.js → PkToolShowWebPages-B-LuiAtg.js} +2 -2
- package/dist/_chunks/{PkToolShowWebPages-C42FNo8K.js.map → PkToolShowWebPages-B-LuiAtg.js.map} +1 -1
- package/dist/_chunks/{chatImagePolicy-DlZPHhW-.js → chatImagePolicy-Dv_WHhDs.js} +2 -2
- package/dist/_chunks/{chatImagePolicy-DlZPHhW-.js.map → chatImagePolicy-Dv_WHhDs.js.map} +1 -1
- package/dist/_chunks/{markdown-DNPhTO5l.js → markdown-BYpvcbWH.js} +2 -2
- package/dist/_chunks/{markdown-DNPhTO5l.js.map → markdown-BYpvcbWH.js.map} +1 -1
- package/dist/_chunks/{utils-zkq8kMz-.js → utils-DMvy5QRR.js} +2 -2
- package/dist/_chunks/{utils-zkq8kMz-.js.map → utils-DMvy5QRR.js.map} +1 -1
- package/dist/ai-elements.es.js +405 -135
- package/dist/ai-elements.es.js.map +1 -1
- package/dist-vue/PkChatbot.js +1 -1
- package/dist-vue/PkChatbotEmptyState.js +1 -1
- package/dist-vue/PkChatbotInput.js +1 -1
- package/dist-vue/PkChatbotMessages.js +1 -1
- package/dist-vue/PkChatbotStepPayload.js +1 -1
- package/dist-vue/PkChatbotStepToolDetail.js +1 -1
- package/dist-vue/PkChatbotSteps.js +1 -1
- package/dist-vue/PkChatbotViewChat.js +1 -1
- package/dist-vue/PkChatbotViewConversations.js +1 -1
- package/dist-vue/PkChatbotViewFiles.js +1 -1
- package/dist-vue/PkChatbotViewProfile.js +1 -1
- package/dist-vue/_chunks/{Agent-ldDZiq6E.js → Agent-B9iJ1WvR.js} +131 -130
- package/dist-vue/_chunks/Agent-B9iJ1WvR.js.map +1 -0
- package/dist-vue/_chunks/{Document-BfjAfogy.js → Document-DnsOE7s6.js} +2 -2
- package/dist-vue/_chunks/{Document-BfjAfogy.js.map → Document-DnsOE7s6.js.map} +1 -1
- package/dist-vue/_chunks/{PkChart-DyyBXkd3.js → PkChart-D-K7nc0g.js} +2 -2
- package/dist-vue/_chunks/{PkChart-DyyBXkd3.js.map → PkChart-D-K7nc0g.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbot-wsqj3EpU.js → PkChatbot-DVQ-Bb7n.js} +8 -8
- package/dist-vue/_chunks/{PkChatbot-wsqj3EpU.js.map → PkChatbot-DVQ-Bb7n.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotEmptyState-DcgIfNkX.js → PkChatbotEmptyState-OlgewA4_.js} +2 -2
- package/dist-vue/_chunks/{PkChatbotEmptyState-DcgIfNkX.js.map → PkChatbotEmptyState-OlgewA4_.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotInput-CN4rmNgu.js → PkChatbotInput-D_I0Gf_u.js} +4 -4
- package/dist-vue/_chunks/{PkChatbotInput-CN4rmNgu.js.map → PkChatbotInput-D_I0Gf_u.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotMessages-BlF4Xp0_.js → PkChatbotMessages-CAXnEfXK.js} +18 -18
- package/dist-vue/_chunks/{PkChatbotMessages-BlF4Xp0_.js.map → PkChatbotMessages-CAXnEfXK.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotStepPayload-q9uXE5mr.js → PkChatbotStepPayload-EBri1L10.js} +2 -2
- package/dist-vue/_chunks/{PkChatbotStepPayload-q9uXE5mr.js.map → PkChatbotStepPayload-EBri1L10.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotStepToolDetail-BJz6Qwh3.js → PkChatbotStepToolDetail-DiQEa0UV.js} +3 -3
- package/dist-vue/_chunks/{PkChatbotStepToolDetail-BJz6Qwh3.js.map → PkChatbotStepToolDetail-DiQEa0UV.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotSteps-DvJYNl_k.js → PkChatbotSteps-BgLnv2J1.js} +5 -5
- package/dist-vue/_chunks/{PkChatbotSteps-DvJYNl_k.js.map → PkChatbotSteps-BgLnv2J1.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotViewChat-tmHyxxT3.js → PkChatbotViewChat-CmjD1IXf.js} +360 -355
- package/dist-vue/_chunks/PkChatbotViewChat-CmjD1IXf.js.map +1 -0
- package/dist-vue/_chunks/{PkChatbotViewConversations-DOzUh_A7.js → PkChatbotViewConversations-CVZH5dXx.js} +3 -3
- package/dist-vue/_chunks/{PkChatbotViewConversations-DOzUh_A7.js.map → PkChatbotViewConversations-CVZH5dXx.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotViewFiles-CsL8OhcA.js → PkChatbotViewFiles-CO4gv9nd.js} +3 -3
- package/dist-vue/_chunks/{PkChatbotViewFiles-CsL8OhcA.js.map → PkChatbotViewFiles-CO4gv9nd.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotViewProfile-CFqxCK2f.js → PkChatbotViewProfile-CriJtak0.js} +2 -2
- package/dist-vue/_chunks/{PkChatbotViewProfile-CFqxCK2f.js.map → PkChatbotViewProfile-CriJtak0.js.map} +1 -1
- package/dist-vue/_chunks/{PkFilePreview-Bp5-Pl54.js → PkFilePreview-k5gEl3n8.js} +586 -434
- package/dist-vue/_chunks/PkFilePreview-k5gEl3n8.js.map +1 -0
- package/dist-vue/_chunks/{PkFilePreviewDialog-CS885vBR.js → PkFilePreviewDialog-DUwZPErE.js} +12 -7
- package/dist-vue/_chunks/PkFilePreviewDialog-DUwZPErE.js.map +1 -0
- package/dist-vue/_chunks/{PkImageEditorDialog-BhfdnsmX.js → PkImageEditorDialog-DQPXePae.js} +2 -2
- package/dist-vue/_chunks/{PkImageEditorDialog-BhfdnsmX.js.map → PkImageEditorDialog-DQPXePae.js.map} +1 -1
- package/dist-vue/_chunks/{PkStreamingMarkdown-NgrJUZPI.js → PkStreamingMarkdown-ZasabxE0.js} +3 -3
- package/dist-vue/_chunks/{PkStreamingMarkdown-NgrJUZPI.js.map → PkStreamingMarkdown-ZasabxE0.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolChatFile-DnmiNGF4.js → PkToolChatFile-CD26Q2xp.js} +3 -3
- package/dist-vue/_chunks/{PkToolChatFile-DnmiNGF4.js.map → PkToolChatFile-CD26Q2xp.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolRequestGeolocation-D1XNCvdr.js → PkToolRequestGeolocation-Bhh7UomV.js} +2 -2
- package/dist-vue/_chunks/{PkToolRequestGeolocation-D1XNCvdr.js.map → PkToolRequestGeolocation-Bhh7UomV.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolRequestOAuthConnection-OTvMRYaL.js → PkToolRequestOAuthConnection-8GJlt5G1.js} +2 -2
- package/dist-vue/_chunks/{PkToolRequestOAuthConnection-OTvMRYaL.js.map → PkToolRequestOAuthConnection-8GJlt5G1.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowArtifact-C8ueuIGQ.js → PkToolShowArtifact-BhVd_ZQ8.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowArtifact-C8ueuIGQ.js.map → PkToolShowArtifact-BhVd_ZQ8.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowChart-BWO6Hzlq.js → PkToolShowChart-BQXxaPIO.js} +3 -3
- package/dist-vue/_chunks/{PkToolShowChart-BWO6Hzlq.js.map → PkToolShowChart-BQXxaPIO.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowContactForm-BBcDsLEO.js → PkToolShowContactForm-CackCDGD.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowContactForm-BBcDsLEO.js.map → PkToolShowContactForm-CackCDGD.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowDiagram-BzUcxOKy.js → PkToolShowDiagram-CABPsFi8.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowDiagram-BzUcxOKy.js.map → PkToolShowDiagram-CABPsFi8.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowForm-B6uhHzJ8.js → PkToolShowForm-BStbk4Iu.js} +4 -4
- package/dist-vue/_chunks/{PkToolShowForm-B6uhHzJ8.js.map → PkToolShowForm-BStbk4Iu.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowImageGallery-C39nlJrJ.js → PkToolShowImageGallery-BeeHsdTp.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowImageGallery-C39nlJrJ.js.map → PkToolShowImageGallery-BeeHsdTp.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowProductList-FLLkRCnm.js → PkToolShowProductList-BfUiap9U.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowProductList-FLLkRCnm.js.map → PkToolShowProductList-BfUiap9U.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowSources-Cb7r5jrX.js → PkToolShowSources-CgEkcyRg.js} +3 -3
- package/dist-vue/_chunks/{PkToolShowSources-Cb7r5jrX.js.map → PkToolShowSources-CgEkcyRg.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowSuggestedReply-BVLCX5Sm.js → PkToolShowSuggestedReply-DxlGhMvE.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowSuggestedReply-BVLCX5Sm.js.map → PkToolShowSuggestedReply-DxlGhMvE.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowVideo-QDLhVlau.js → PkToolShowVideo-CqSRnDNC.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowVideo-QDLhVlau.js.map → PkToolShowVideo-CqSRnDNC.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowWebPages-P6PdJTEE.js → PkToolShowWebPages-B-qIS8qY.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowWebPages-P6PdJTEE.js.map → PkToolShowWebPages-B-qIS8qY.js.map} +1 -1
- package/dist-vue/_chunks/{createChatbotApiClient-CGeNprai.js → createChatbotApiClient-DmPcjwB3.js} +7 -7
- package/dist-vue/_chunks/{createChatbotApiClient-CGeNprai.js.map → createChatbotApiClient-DmPcjwB3.js.map} +1 -1
- package/dist-vue/_chunks/{useChatbotStore-KXAltGz3.js → useChatbotStore-B6ILfm5Z.js} +17 -17
- package/dist-vue/_chunks/{useChatbotStore-KXAltGz3.js.map → useChatbotStore-B6ILfm5Z.js.map} +1 -1
- package/dist-vue/_chunks/{utils-D4B1FVGF.js → utils-KBB6SDPn.js} +2 -2
- package/dist-vue/_chunks/{utils-D4B1FVGF.js.map → utils-KBB6SDPn.js.map} +1 -1
- package/dist-vue/api.js +1 -1
- package/dist-vue/apps/web-component/src/composables/useChatbotAgent.d.ts +6 -0
- package/dist-vue/composables.js +270 -6
- package/dist-vue/composables.js.map +1 -1
- package/dist-vue/index.js +5325 -5232
- package/dist-vue/index.js.map +1 -1
- package/dist-vue/locales.js +12 -0
- package/dist-vue/packages/components/src/chat/PkAgentSettingsPanel.d.ts +6 -0
- package/dist-vue/packages/components/src/chat/PkFilePreview.d.ts +8 -0
- package/dist-vue/packages/components/src/chat/PkFilePreviewDialog.d.ts +4 -0
- package/dist-vue/packages/components/src/chat/PkSelectionActionIconPicker.d.ts +19 -0
- package/dist-vue/packages/components/src/chat/PkSelectionActions.d.ts +3 -0
- package/dist-vue/packages/components/src/chat/selectionActionEdits.d.ts +1 -0
- package/dist-vue/packages/components/src/chat/selectionActionIcons.d.ts +9 -0
- package/dist-vue/packages/components/src/chat/useChatFilePreview.d.ts +12 -12
- package/dist-vue/packages/composable/src/chatbot/useChatbotStore.d.ts +18 -0
- package/dist-vue/packages/models/src/schema/Agent.d.ts +2688 -0
- package/dist-vue/packages/models/src/schema/Chart.d.ts +4 -4
- package/dist-vue/packages/models/src/schema/Lead.d.ts +6 -6
- package/dist-vue/packages/models/src/schema/ReasoningChat.d.ts +768 -0
- package/dist-vue/packages/models/src/schema/SelectionAction.d.ts +1415 -0
- package/dist-vue/packages/models/src/schema/SelectionActionPreview.d.ts +38 -0
- package/dist-vue/packages/models/src/schema/SpreadsheetPreview.d.ts +6 -6
- package/dist-vue/packages/models/src/schema/SubAgent.d.ts +768 -0
- package/dist-vue/packages/models/src/schema/WordPreview.d.ts +13 -13
- package/dist-vue/packages/models/src/schema/index.d.ts +1 -0
- package/dist-vue/style.css +1 -1
- package/package.json +1 -1
- package/dist/_chunks/Agent-CeZ3bgZ3.js.map +0 -1
- package/dist/_chunks/PkFilePreview-D_1ZgiiA.js.map +0 -1
- package/dist/_chunks/PkFilePreviewDialog-CI22huzK.js.map +0 -1
- package/dist/_chunks/PkSelectionActions-BriGyWCi.js.map +0 -1
- package/dist-vue/_chunks/Agent-ldDZiq6E.js.map +0 -1
- package/dist-vue/_chunks/PkChatbotViewChat-tmHyxxT3.js.map +0 -1
- package/dist-vue/_chunks/PkFilePreview-Bp5-Pl54.js.map +0 -1
- package/dist-vue/_chunks/PkFilePreviewDialog-CS885vBR.js.map +0 -1
|
@@ -565,8 +565,8 @@ var We = (e) => {
|
|
|
565
565
|
"summarize",
|
|
566
566
|
"chart"
|
|
567
567
|
]
|
|
568
|
-
}, qe = (e) => h(i(), i().trim().min(1).max(e));
|
|
569
|
-
function
|
|
568
|
+
}, qe = /* @__PURE__ */ "sparkles.magic.idea.star.heart.lightning.fire.rocket.pen.pencil.text.paragraph.quote.list.checklist.highlighter.document.folder.book.bookmark.clipboard.draft.contract.attachment.archive.search.filter.eye.questions.pie-chart.line-chart.table.database.calculator.percent.scales.euro.dollar.wallet.bank.card.cart.price-tag.bill.gift.shop.truck.shield.lock.key.gavel.institution.passport.person.team.group.smile.handshake.support.contacts.mail.send.speech.phone.megaphone.bell.share.link.globe.calendar.event.clock.timer.history.hourglass.plane.car.train.ship.map.pin.compass.bed.suitcase.home.building.flag.earth.sun.umbrella.heartbeat.capsule.first-aid.restaurant.cup.leaf.plant.recycle.school.graduation.brain.puzzle.award.trophy.settings.tools.code.bug.robot.cloud.flask.microscope.check.cross.warning.information.refresh.swap.arrow.thumbs-up.target.palette.image.music.video.microphone".split("."), Je = (e) => h(i(), i().trim().min(1).max(e));
|
|
569
|
+
function Ye(e) {
|
|
570
570
|
let t = (e) => Object.keys(e ?? {}).filter((t) => !!e?.[t]?.trim()), n = t(e.label), r = t(e.prompt);
|
|
571
571
|
return {
|
|
572
572
|
empty: n.length === 0 && r.length === 0,
|
|
@@ -574,12 +574,13 @@ function Je(e) {
|
|
|
574
574
|
prompt: n.filter((e) => !r.includes(e))
|
|
575
575
|
};
|
|
576
576
|
}
|
|
577
|
-
var
|
|
577
|
+
var Xe = n({
|
|
578
578
|
id: i().trim().min(1).max(64),
|
|
579
|
-
label:
|
|
580
|
-
prompt:
|
|
579
|
+
label: Je(40),
|
|
580
|
+
prompt: Je(500),
|
|
581
|
+
icon: u(qe).optional().catch(void 0)
|
|
581
582
|
});
|
|
582
|
-
function
|
|
583
|
+
function Ze(e, t, n = {}) {
|
|
583
584
|
for (let r of Ke) {
|
|
584
585
|
let i = e.selectionActions?.[r];
|
|
585
586
|
if (i?.enabled && n[r] !== !1) for (let [e, n] of (i.actions ?? []).entries()) {
|
|
@@ -588,7 +589,7 @@ function Xe(e, t, n = {}) {
|
|
|
588
589
|
r,
|
|
589
590
|
"actions",
|
|
590
591
|
e
|
|
591
|
-
], a =
|
|
592
|
+
], a = Ye(n);
|
|
592
593
|
a.empty && t.addIssue({
|
|
593
594
|
code: "custom",
|
|
594
595
|
message: "An action needs a label and an instruction",
|
|
@@ -609,7 +610,7 @@ function Xe(e, t, n = {}) {
|
|
|
609
610
|
var F = (e, t) => n({
|
|
610
611
|
enabled: d().default(t),
|
|
611
612
|
builtIns: c(u(e)).default(() => [...e]),
|
|
612
|
-
actions: c(
|
|
613
|
+
actions: c(Xe).default([])
|
|
613
614
|
}).refine((e) => new Set(e.builtIns).size === e.builtIns.length, {
|
|
614
615
|
message: "A built-in action is listed twice",
|
|
615
616
|
path: ["builtIns"]
|
|
@@ -619,14 +620,14 @@ var F = (e, t) => n({
|
|
|
619
620
|
}).refine((e) => e.builtIns.length + e.actions.length <= 4, {
|
|
620
621
|
message: "At most 4 actions, built-in and the agent's together",
|
|
621
622
|
path: ["actions"]
|
|
622
|
-
}),
|
|
623
|
-
page:
|
|
624
|
-
word:
|
|
625
|
-
excel:
|
|
623
|
+
}), Qe = F(P.page, !1), $e = F(P.word, !0), et = F(P.excel, !0), tt = n({
|
|
624
|
+
page: Qe.optional().default(() => Qe.parse({})),
|
|
625
|
+
word: $e.optional().default(() => $e.parse({})),
|
|
626
|
+
excel: et.optional().default(() => et.parse({}))
|
|
626
627
|
}), I = n({
|
|
627
628
|
builtIns: c(u(Ge)),
|
|
628
|
-
actions: c(
|
|
629
|
-
}),
|
|
629
|
+
actions: c(Xe)
|
|
630
|
+
}), nt = n({
|
|
630
631
|
page: I.optional(),
|
|
631
632
|
word: I.optional(),
|
|
632
633
|
excel: I.optional()
|
|
@@ -640,67 +641,67 @@ var z = /* @__PURE__ */ function(e) {
|
|
|
640
641
|
return e.Chat = "chat", e.Reasoning = "reasoning", e;
|
|
641
642
|
}({}), B = /* @__PURE__ */ function(e) {
|
|
642
643
|
return e.Semantic = "semantic", e.Balanced = "balanced", e.Keyword = "keyword", e;
|
|
643
|
-
}({}),
|
|
644
|
+
}({}), rt = [
|
|
644
645
|
"none",
|
|
645
646
|
"low",
|
|
646
647
|
"medium",
|
|
647
648
|
"high",
|
|
648
649
|
"xhigh",
|
|
649
650
|
"max"
|
|
650
|
-
],
|
|
651
|
+
], it = [
|
|
651
652
|
"low",
|
|
652
653
|
"medium",
|
|
653
654
|
"high",
|
|
654
655
|
"xhigh",
|
|
655
656
|
"max"
|
|
656
|
-
],
|
|
657
|
+
], at = [
|
|
657
658
|
"minimal",
|
|
658
659
|
"low",
|
|
659
660
|
"medium",
|
|
660
661
|
"high"
|
|
661
|
-
],
|
|
662
|
+
], ot = [
|
|
662
663
|
"auto",
|
|
663
664
|
"detailed",
|
|
664
665
|
"concise"
|
|
665
|
-
],
|
|
666
|
-
reasoningEffort: u(
|
|
667
|
-
reasoningSummary: u(
|
|
668
|
-
}),
|
|
666
|
+
], st = n({
|
|
667
|
+
reasoningEffort: u(rt).optional(),
|
|
668
|
+
reasoningSummary: u(ot).optional()
|
|
669
|
+
}), ct = n({
|
|
669
670
|
type: u([
|
|
670
671
|
"adaptive",
|
|
671
672
|
"enabled",
|
|
672
673
|
"disabled"
|
|
673
674
|
]).optional(),
|
|
674
|
-
effort: u(
|
|
675
|
+
effort: u(it).optional(),
|
|
675
676
|
display: u(["summarized", "omitted"]).optional(),
|
|
676
677
|
budgetTokens: s().int().positive().optional()
|
|
677
|
-
}),
|
|
678
|
-
thinkingLevel: u(
|
|
678
|
+
}), lt = n({
|
|
679
|
+
thinkingLevel: u(at).optional(),
|
|
679
680
|
thinkingBudget: s().int().optional(),
|
|
680
681
|
includeThoughts: d().optional()
|
|
681
|
-
}),
|
|
682
|
+
}), ut = n({ type: u(["enabled", "disabled"]).optional() }), V = [
|
|
682
683
|
"alibaba",
|
|
683
684
|
"meta",
|
|
684
685
|
"moonshotai",
|
|
685
686
|
"spacexai",
|
|
686
687
|
"xiaomi",
|
|
687
688
|
"zai"
|
|
688
|
-
],
|
|
689
|
+
], dt = [
|
|
689
690
|
"none",
|
|
690
691
|
"minimal",
|
|
691
692
|
"low",
|
|
692
693
|
"medium",
|
|
693
694
|
"high",
|
|
694
695
|
"xhigh"
|
|
695
|
-
], H = n({ reasoningEffort: u(
|
|
696
|
+
], H = n({ reasoningEffort: u(dt).optional() });
|
|
696
697
|
function U(e, t) {
|
|
697
698
|
return e && t.includes(e) ? e : void 0;
|
|
698
699
|
}
|
|
699
|
-
var
|
|
700
|
-
openai:
|
|
701
|
-
anthropic:
|
|
702
|
-
google:
|
|
703
|
-
deepseek:
|
|
700
|
+
var ft = n({
|
|
701
|
+
openai: st.optional(),
|
|
702
|
+
anthropic: ct.optional(),
|
|
703
|
+
google: lt.optional(),
|
|
704
|
+
deepseek: ut.optional(),
|
|
704
705
|
alibaba: H.optional(),
|
|
705
706
|
meta: H.optional(),
|
|
706
707
|
moonshotai: H.optional(),
|
|
@@ -708,7 +709,7 @@ var dt = n({
|
|
|
708
709
|
xiaomi: H.optional(),
|
|
709
710
|
zai: H.optional()
|
|
710
711
|
});
|
|
711
|
-
function
|
|
712
|
+
function pt(e) {
|
|
712
713
|
if (!e || typeof e != "object") return e;
|
|
713
714
|
let t = e, n = [
|
|
714
715
|
"openai",
|
|
@@ -720,19 +721,19 @@ function ft(e) {
|
|
|
720
721
|
if ("effort" in t && !n) {
|
|
721
722
|
let e = t.effort, n = t.reasoningSummary, r = {};
|
|
722
723
|
if (e && e !== "off" && e !== "none") {
|
|
723
|
-
let t = U(e,
|
|
724
|
+
let t = U(e, rt), i = U(n, ot);
|
|
724
725
|
(t || i) && (r.openai = {
|
|
725
726
|
...t && { reasoningEffort: t },
|
|
726
727
|
...i && { reasoningSummary: i }
|
|
727
728
|
});
|
|
728
|
-
let a = U(e,
|
|
729
|
+
let a = U(e, it);
|
|
729
730
|
a && (r.anthropic = {
|
|
730
731
|
type: "adaptive",
|
|
731
732
|
effort: a
|
|
732
733
|
});
|
|
733
|
-
let o = U(e === "xhigh" || e === "max" ? "high" : e,
|
|
734
|
+
let o = U(e === "xhigh" || e === "max" ? "high" : e, at);
|
|
734
735
|
o && (r.google = { thinkingLevel: o }), r.deepseek = { type: "enabled" };
|
|
735
|
-
let s = U(e === "max" ? "xhigh" : e,
|
|
736
|
+
let s = U(e === "max" ? "xhigh" : e, dt);
|
|
736
737
|
if (s) for (let e of V) r[e] = { reasoningEffort: s };
|
|
737
738
|
} else {
|
|
738
739
|
r.openai = { reasoningEffort: "none" }, r.anthropic = { type: "disabled" }, r.google = { thinkingLevel: "minimal" }, r.deepseek = { type: "disabled" };
|
|
@@ -742,13 +743,13 @@ function ft(e) {
|
|
|
742
743
|
}
|
|
743
744
|
return e;
|
|
744
745
|
}
|
|
745
|
-
var
|
|
746
|
+
var mt = g(t(), ft, pt).optional(), W = /* @__PURE__ */ function(e) {
|
|
746
747
|
return e.Geocode = "geocode", e.GetWeather = "getWeather", e.ReadDocumentFile = "readDocumentFile", e.RequestConfirm = "requestConfirm", e.RequestGeolocation = "requestGeolocation", e.RetrieveRevisedAnswers = "retrieveRevisedAnswers", e.SearchInKnowledgeBase = "searchInKnowledgeBase", e.SearchInUserFiles = "searchInUserFiles", e.UserMemory = "userMemory", e.Spreadsheet = "spreadsheet", e.QuerySpreadsheet = "querySpreadsheet", e.WordDocument = "wordDocument", e.CreateSpreadsheet = "createSpreadsheet", e.CreateWordDocument = "createWordDocument", e.RunWorker = "runWorker", e.ScheduleWakeup = "scheduleWakeup", e.ShareDocument = "shareDocument", e.FetchTeamsChannelHistory = "fetchTeamsChannelHistory", e.ShowArtifact = "showArtifact", e.ShowCalendarEvent = "showCalendarEvent", e.ShowChart = "showChart", e.ShowComparison = "showComparison", e.ShowContactForm = "showContactForm", e.ShowDiagram = "showDiagram", e.ShowEmail = "showEmail", e.ShowImageGallery = "showImageGallery", e.ShowLocation = "showLocation", e.ShowMessage = "showMessage", e.ShowForm = "showForm", e.ShowProductList = "showProductList", e.ShowQrCode = "showQrCode", e.ShowSources = "showSources", e.ShowSuggestedReply = "showSuggestedReply", e.ShowVideo = "showVideo", e.ShowWeather = "showWeather", e.ShowWebPages = "showWebPages", e.ShowMultipleChoice = "showMultipleChoice", e;
|
|
747
|
-
}({}),
|
|
748
|
-
function
|
|
748
|
+
}({}), ht = "mcp-", gt = "api-", _t = "subagent-";
|
|
749
|
+
function vt(e) {
|
|
749
750
|
return e === W.RequestConfirm || e === W.ShowArtifact || e === W.ShowCalendarEvent || e === W.ShowChart || e === W.ShowComparison || e === W.ShowContactForm || e === W.ShowDiagram || e === W.ShowEmail || e === W.ShowImageGallery || e === W.ShowLocation || e === W.ShowMessage || e === W.ShowForm || e === W.ShowMultipleChoice || e === W.ShowProductList || e === W.ShowQrCode || e === W.ShowSources || e === W.ShowSuggestedReply || e === W.ShowVideo || e === W.ShowWeather || e === W.ShowWebPages;
|
|
750
751
|
}
|
|
751
|
-
var
|
|
752
|
+
var yt = /* @__PURE__ */ new Set([
|
|
752
753
|
"editSpreadsheet",
|
|
753
754
|
"editWordDocument",
|
|
754
755
|
W.CreateSpreadsheet,
|
|
@@ -770,20 +771,20 @@ var vt = /* @__PURE__ */ new Set([
|
|
|
770
771
|
W.ShowEmail,
|
|
771
772
|
W.ShowMessage,
|
|
772
773
|
W.ShowForm,
|
|
773
|
-
...
|
|
774
|
+
...yt,
|
|
774
775
|
W.ShareDocument
|
|
775
776
|
];
|
|
776
|
-
var
|
|
777
|
+
var bt = /* @__PURE__ */ new Set([
|
|
777
778
|
W.RequestConfirm,
|
|
778
779
|
W.RequestGeolocation,
|
|
779
780
|
W.ShowForm,
|
|
780
781
|
W.ShowMultipleChoice,
|
|
781
782
|
"requestOAuthConnection"
|
|
782
783
|
]);
|
|
783
|
-
function
|
|
784
|
-
return
|
|
784
|
+
function xt(e) {
|
|
785
|
+
return bt.has(e);
|
|
785
786
|
}
|
|
786
|
-
var
|
|
787
|
+
var St = /* @__PURE__ */ new Set([
|
|
787
788
|
W.RequestConfirm,
|
|
788
789
|
W.RequestGeolocation,
|
|
789
790
|
W.ShowArtifact,
|
|
@@ -805,22 +806,22 @@ var xt = /* @__PURE__ */ new Set([
|
|
|
805
806
|
W.ShowVideo,
|
|
806
807
|
W.ShowWeather,
|
|
807
808
|
W.ShowWebPages
|
|
808
|
-
]),
|
|
809
|
-
function
|
|
810
|
-
return typeof e == "string" && (e.startsWith("Voice turn note") || e.startsWith(
|
|
809
|
+
]), Ct = "Shown on the caller's screen";
|
|
810
|
+
function wt(e) {
|
|
811
|
+
return typeof e == "string" && (e.startsWith("Voice turn note") || e.startsWith(Ct));
|
|
811
812
|
}
|
|
812
|
-
var
|
|
813
|
+
var Tt = n({
|
|
813
814
|
maxSteps: s().int().min(1).max(10).optional().default(5),
|
|
814
815
|
maxOptionsPerStep: s().int().min(2).max(10).optional().default(5)
|
|
815
|
-
}),
|
|
816
|
+
}), Et = /* @__PURE__ */ function(e) {
|
|
816
817
|
return e.Perplexity = "perplexity", e.Parallel = "parallel", e.Native = "native", e;
|
|
817
|
-
}({}),
|
|
818
|
+
}({}), Dt = [
|
|
818
819
|
"perplexity_search",
|
|
819
820
|
"parallel_search",
|
|
820
821
|
"web_search",
|
|
821
822
|
"openai_web_search",
|
|
822
823
|
"google_search"
|
|
823
|
-
],
|
|
824
|
+
], Ot = n({
|
|
824
825
|
maxResults: s().int().min(1).max(20).optional(),
|
|
825
826
|
maxTokens: s().int().positive().max(1e6).optional(),
|
|
826
827
|
maxTokensPerPage: s().int().positive().optional(),
|
|
@@ -833,7 +834,7 @@ var wt = n({
|
|
|
833
834
|
"month",
|
|
834
835
|
"year"
|
|
835
836
|
]).optional()
|
|
836
|
-
}),
|
|
837
|
+
}), kt = n({
|
|
837
838
|
mode: u(["one-shot", "agentic"]).optional(),
|
|
838
839
|
maxResults: s().int().min(1).max(20).optional(),
|
|
839
840
|
sourcePolicy: n({
|
|
@@ -846,7 +847,7 @@ var wt = n({
|
|
|
846
847
|
maxCharsTotal: s().int().positive().optional()
|
|
847
848
|
}).optional(),
|
|
848
849
|
fetchPolicy: n({ maxAgeSeconds: s().int().positive().optional() }).optional()
|
|
849
|
-
}),
|
|
850
|
+
}), At = n({
|
|
850
851
|
openai: n({}).optional(),
|
|
851
852
|
anthropic: n({
|
|
852
853
|
maxUses: s().int().positive().optional(),
|
|
@@ -863,11 +864,11 @@ var wt = n({
|
|
|
863
864
|
google: n({}).optional()
|
|
864
865
|
}), G = n({
|
|
865
866
|
enabled: d().default(!1),
|
|
866
|
-
provider: u(
|
|
867
|
-
perplexity:
|
|
868
|
-
parallel:
|
|
869
|
-
native:
|
|
870
|
-
}),
|
|
867
|
+
provider: u(Et).optional().default(Et.Native),
|
|
868
|
+
perplexity: Ot.optional(),
|
|
869
|
+
parallel: kt.optional(),
|
|
870
|
+
native: At.optional()
|
|
871
|
+
}), jt = n({ useAllUserKb: d().default(!1) }), Mt = n({ useAllUserFiles: d().default(!1) }), Nt = n({ enabled: d().default(!1) }), K = n({ enabled: d().default(!1) }), Pt = n({ tools: c(i()).default([]) }), Ft = n({
|
|
871
872
|
disabled: c(u(W)).default([
|
|
872
873
|
W.UserMemory,
|
|
873
874
|
W.SearchInUserFiles,
|
|
@@ -875,14 +876,14 @@ var wt = n({
|
|
|
875
876
|
W.FetchTeamsChannelHistory,
|
|
876
877
|
W.ScheduleWakeup
|
|
877
878
|
]),
|
|
878
|
-
showForm:
|
|
879
|
+
showForm: Tt.optional().default(() => Tt.parse({})),
|
|
879
880
|
webSearch: G.optional().default(() => G.parse({})),
|
|
880
|
-
userMemory:
|
|
881
|
-
userFiles:
|
|
882
|
-
shareDocument:
|
|
881
|
+
userMemory: jt.optional().default(() => jt.parse({})),
|
|
882
|
+
userFiles: Mt.optional().default(() => Mt.parse({})),
|
|
883
|
+
shareDocument: Nt.optional().default(() => Nt.parse({})),
|
|
883
884
|
createSpreadsheet: K.optional().default(() => K.parse({})),
|
|
884
885
|
createWordDocument: K.optional().default(() => K.parse({})),
|
|
885
|
-
approval:
|
|
886
|
+
approval: Pt.optional().default(() => Pt.parse({}))
|
|
886
887
|
}), q = n({
|
|
887
888
|
freshness: n({
|
|
888
889
|
enabled: d().default(!1),
|
|
@@ -895,7 +896,7 @@ var wt = n({
|
|
|
895
896
|
diversity: s().min(0).max(1).default(.3),
|
|
896
897
|
candidatesLimit: s().int().min(20).max(100).default(50)
|
|
897
898
|
}).prefault({})
|
|
898
|
-
}).prefault({}),
|
|
899
|
+
}).prefault({}), It = n({
|
|
899
900
|
prompt: i().optional(),
|
|
900
901
|
temperature: s().min(0).max(2).optional().default(.6),
|
|
901
902
|
maxOutputTokens: s().positive().optional(),
|
|
@@ -904,9 +905,9 @@ var wt = n({
|
|
|
904
905
|
searchMode: u(B).optional().default(B.Balanced),
|
|
905
906
|
limit: s().positive().max(100).optional().default(10),
|
|
906
907
|
maxStepCount: s().int().min(1).max(40).optional().default(10),
|
|
907
|
-
reasoning:
|
|
908
|
+
reasoning: mt,
|
|
908
909
|
ranking: q.optional().default(() => q.parse({}))
|
|
909
|
-
}), J = g(t(), h(i(), i()), (e) => typeof e == "string" ? { it: e } : e),
|
|
910
|
+
}), J = g(t(), h(i(), i()), (e) => typeof e == "string" ? { it: e } : e), Lt = "https://cdn.jsdelivr.net/npm/@8wave/ai-elements/dist/ai-elements.es.js", Rt = /* @__PURE__ */ function(e) {
|
|
910
911
|
return e.InlineModule = "inline-module", e.ScriptSrc = "script-src", e.DynamicImport = "dynamic-import", e;
|
|
911
912
|
}({}), Y = /* @__PURE__ */ function(e) {
|
|
912
913
|
return e.Floating = "floating", e.Copilot = "copilot", e;
|
|
@@ -914,8 +915,8 @@ var wt = n({
|
|
|
914
915
|
return e.Solid = "solid", e.Glass = "glass", e;
|
|
915
916
|
}({}), Z = /* @__PURE__ */ function(e) {
|
|
916
917
|
return e.Frontoffice = "frontoffice", e.App = "app", e.Widget = "widget", e;
|
|
917
|
-
}({}),
|
|
918
|
-
function
|
|
918
|
+
}({}), zt = Object.values(Z), Bt = /^(?=.{1,253}$)([a-z0-9-]+\.)*[a-z0-9-]+$/;
|
|
919
|
+
function Vt(e) {
|
|
919
920
|
let t = e.trim().toLowerCase();
|
|
920
921
|
if (!t) return "";
|
|
921
922
|
try {
|
|
@@ -960,16 +961,16 @@ var Q = n({
|
|
|
960
961
|
workingGlow: d().optional().default(!0),
|
|
961
962
|
copilotPageCss: i().optional(),
|
|
962
963
|
maxMessageLength: s().int().positive().optional(),
|
|
963
|
-
widgetUrl: e().default(
|
|
964
|
+
widgetUrl: e().default(Lt),
|
|
964
965
|
loadDelay: s().int().min(0).max(3e4).optional().default(0),
|
|
965
|
-
loaderStrategy: u(
|
|
966
|
+
loaderStrategy: u(Rt).optional().default(Rt.InlineModule),
|
|
966
967
|
customCss: i().optional(),
|
|
967
968
|
smoothStream: d().optional().default(!1),
|
|
968
969
|
showExtendedSteps: d().optional().default(!1),
|
|
969
970
|
showReasoning: d().optional().default(!0),
|
|
970
971
|
holdExternalImages: d().optional().default(!1),
|
|
971
|
-
imageHosts: c(i().overwrite(
|
|
972
|
-
}),
|
|
972
|
+
imageHosts: c(i().overwrite(Vt).refine((e) => e === "" || Bt.test(e), { message: "Enter a host name, like images.example.com" })).overwrite((e) => [...new Set(e.filter(Boolean))]).default([])
|
|
973
|
+
}), Ht = [
|
|
973
974
|
"image/jpeg",
|
|
974
975
|
"image/png",
|
|
975
976
|
"image/gif",
|
|
@@ -978,19 +979,19 @@ var Q = n({
|
|
|
978
979
|
"text/plain",
|
|
979
980
|
"text/markdown",
|
|
980
981
|
"text/csv"
|
|
981
|
-
],
|
|
982
|
+
], Ut = "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet", Wt = "application/vnd.openxmlformats-officedocument.wordprocessingml.document", $ = n({
|
|
982
983
|
enabled: d().default(!1),
|
|
983
984
|
maxFileSizeBytes: s().int().positive().max(104857600).optional().default(20971520),
|
|
984
|
-
allowedMimeTypes: c(i().regex(A)).optional().default([...
|
|
985
|
+
allowedMimeTypes: c(i().regex(A)).optional().default([...Ht]),
|
|
985
986
|
maxFilesPerMessage: s().int().positive().max(10).optional().default(5),
|
|
986
987
|
maxFilesPerChat: s().int().positive().max(50).optional().default(20)
|
|
987
|
-
}),
|
|
988
|
+
}), Gt = n({
|
|
988
989
|
zeroDataRetention: d().default(!0),
|
|
989
990
|
disallowPromptTraining: d().default(!0),
|
|
990
991
|
providerTimeoutMs: s().int().min(1e3).max(789e3).optional()
|
|
991
|
-
}),
|
|
992
|
+
}), Kt = n({ enabled: d().default(!1) }), qt = /* @__PURE__ */ function(e) {
|
|
992
993
|
return e.Off = "off", e.Shadow = "shadow", e.Active = "active", e;
|
|
993
|
-
}({}),
|
|
994
|
+
}({}), Jt = n({ mode: u(qt).default(qt.Off) }), Yt = n({
|
|
994
995
|
enabled: d().default(!1),
|
|
995
996
|
voiceId: i().optional(),
|
|
996
997
|
language: i().min(2).max(5).default("it"),
|
|
@@ -1009,44 +1010,44 @@ var Q = n({
|
|
|
1009
1010
|
providerAgentId: i().optional(),
|
|
1010
1011
|
providerSecretId: i().optional(),
|
|
1011
1012
|
providerApiKeyId: i().optional()
|
|
1012
|
-
}),
|
|
1013
|
+
}), Xt = n({ enabled: d() }), Zt = l("automatic");
|
|
1013
1014
|
n({
|
|
1014
1015
|
chatId: i().min(1).optional(),
|
|
1015
1016
|
deviceContext: ue.optional(),
|
|
1016
1017
|
externalContext: h(i(), t()).optional(),
|
|
1017
1018
|
pageTools: t().optional(),
|
|
1018
|
-
confirmations:
|
|
1019
|
+
confirmations: Zt.optional()
|
|
1019
1020
|
});
|
|
1020
|
-
var
|
|
1021
|
+
var Qt = n({
|
|
1021
1022
|
sessionId: i(),
|
|
1022
1023
|
signedUrl: i(),
|
|
1023
1024
|
providerAgentId: i(),
|
|
1024
1025
|
chatId: i(),
|
|
1025
1026
|
maxSessionSeconds: s().int()
|
|
1026
|
-
}),
|
|
1027
|
+
}), $t = n({
|
|
1027
1028
|
voiceId: i(),
|
|
1028
1029
|
name: i(),
|
|
1029
1030
|
category: i().optional(),
|
|
1030
1031
|
previewUrl: i().optional(),
|
|
1031
1032
|
labels: h(i(), i()).optional()
|
|
1032
1033
|
});
|
|
1033
|
-
c(
|
|
1034
|
-
var
|
|
1035
|
-
model:
|
|
1034
|
+
c($t);
|
|
1035
|
+
var en = n({ allowAutomatic: d().default(!1) }), tn = n({ allowAutomatic: l(!0) }), nn = n({
|
|
1036
|
+
model: It,
|
|
1036
1037
|
interface: Q,
|
|
1037
|
-
tools:
|
|
1038
|
+
tools: Ft.optional().default(() => Ft.parse({})),
|
|
1038
1039
|
fileUpload: $.optional().default(() => $.parse({})),
|
|
1039
|
-
gatewayOptions:
|
|
1040
|
-
channels: c(u(Z)).optional().default(() => [...
|
|
1040
|
+
gatewayOptions: Gt.optional().default(() => Gt.parse({})),
|
|
1041
|
+
channels: c(u(Z)).optional().default(() => [...zt]),
|
|
1041
1042
|
externalContextSchema: re.optional(),
|
|
1042
|
-
openaiApi:
|
|
1043
|
-
voice:
|
|
1044
|
-
toolWorkingSet:
|
|
1043
|
+
openaiApi: Kt.optional().default(() => Kt.parse({})),
|
|
1044
|
+
voice: Yt.optional().default(() => Yt.parse({})),
|
|
1045
|
+
toolWorkingSet: Jt.optional().default(() => Jt.parse({})),
|
|
1045
1046
|
hostTools: me.optional(),
|
|
1046
1047
|
pageAccess: Se.optional(),
|
|
1047
|
-
confirmations:
|
|
1048
|
-
selectionActions:
|
|
1049
|
-
}),
|
|
1048
|
+
confirmations: en.optional(),
|
|
1049
|
+
selectionActions: tt.optional()
|
|
1050
|
+
}), rn = n({
|
|
1050
1051
|
rateLimits: n({
|
|
1051
1052
|
minuteRateLimit: s().int().min(0).optional(),
|
|
1052
1053
|
hourRateLimit: s().int().min(0).optional(),
|
|
@@ -1063,12 +1064,12 @@ n({
|
|
|
1063
1064
|
fallbackModels: c(i()).default([]),
|
|
1064
1065
|
status: u(L).default(L.Draft),
|
|
1065
1066
|
visibility: u(R).default(R.Organization),
|
|
1066
|
-
settings:
|
|
1067
|
+
settings: nn.superRefine((e, t) => Ze(e, t, {
|
|
1067
1068
|
page: (e.pageAccess?.level ?? k.Off) !== k.Off,
|
|
1068
1069
|
word: !e.tools.disabled.includes(W.WordDocument),
|
|
1069
1070
|
excel: !e.tools.disabled.includes(W.Spreadsheet)
|
|
1070
1071
|
})),
|
|
1071
|
-
security:
|
|
1072
|
+
security: rn.nullish(),
|
|
1072
1073
|
type: u(z).default(z.Chat),
|
|
1073
1074
|
organizationId: i()
|
|
1074
1075
|
}), o(() => n({
|
|
@@ -1079,8 +1080,8 @@ n({
|
|
|
1079
1080
|
fallbackModels: c(i()).nullable().default([]),
|
|
1080
1081
|
status: u(L).default(L.Draft),
|
|
1081
1082
|
visibility: u(R).default(R.Organization),
|
|
1082
|
-
settings:
|
|
1083
|
-
security:
|
|
1083
|
+
settings: nn,
|
|
1084
|
+
security: rn.nullable(),
|
|
1084
1085
|
type: u(z).default(z.Chat),
|
|
1085
1086
|
organizationId: i(),
|
|
1086
1087
|
createdAt: f(),
|
|
@@ -1093,7 +1094,7 @@ n({
|
|
|
1093
1094
|
outOfBudget: d().optional().default(!1),
|
|
1094
1095
|
outOfBudgetReason: i().optional().default("")
|
|
1095
1096
|
}));
|
|
1096
|
-
var
|
|
1097
|
+
var an = n({
|
|
1097
1098
|
id: i(),
|
|
1098
1099
|
name: i(),
|
|
1099
1100
|
status: u(L),
|
|
@@ -1104,14 +1105,14 @@ var rn = n({
|
|
|
1104
1105
|
updatedAt: f(),
|
|
1105
1106
|
capabilities: n({
|
|
1106
1107
|
fileUpload: $,
|
|
1107
|
-
voice:
|
|
1108
|
+
voice: Xt,
|
|
1108
1109
|
hostTools: he.optional(),
|
|
1109
1110
|
pageAccess: we.optional(),
|
|
1110
|
-
confirmations:
|
|
1111
|
-
selectionActions:
|
|
1111
|
+
confirmations: tn.optional(),
|
|
1112
|
+
selectionActions: nt.optional()
|
|
1112
1113
|
}),
|
|
1113
|
-
channels: c(u(Z)).default(() => [...
|
|
1114
|
-
}),
|
|
1114
|
+
channels: c(u(Z)).default(() => [...zt])
|
|
1115
|
+
}), on = Q.pick({
|
|
1115
1116
|
logo: !0,
|
|
1116
1117
|
mainColor: !0,
|
|
1117
1118
|
textColor: !0,
|
|
@@ -1122,41 +1123,41 @@ var rn = n({
|
|
|
1122
1123
|
hideFloatingButton: !0,
|
|
1123
1124
|
copilotPageCss: !0,
|
|
1124
1125
|
customCss: !0
|
|
1125
|
-
}),
|
|
1126
|
+
}), sn = an.pick({
|
|
1126
1127
|
id: !0,
|
|
1127
1128
|
name: !0,
|
|
1128
1129
|
organizationId: !0
|
|
1129
|
-
}).extend({ interface:
|
|
1130
|
+
}).extend({ interface: on }), cn = n({
|
|
1130
1131
|
emailPassword: d(),
|
|
1131
1132
|
google: d(),
|
|
1132
1133
|
microsoft: d()
|
|
1133
|
-
}),
|
|
1134
|
+
}), ln = n({
|
|
1134
1135
|
requiresAuth: l(!1),
|
|
1135
|
-
agent:
|
|
1136
|
+
agent: an,
|
|
1136
1137
|
branding: r()
|
|
1137
|
-
}),
|
|
1138
|
+
}), un = n({
|
|
1138
1139
|
requiresAuth: l(!0),
|
|
1139
1140
|
agent: r(),
|
|
1140
|
-
branding:
|
|
1141
|
+
branding: sn
|
|
1141
1142
|
});
|
|
1142
|
-
p("requiresAuth", [
|
|
1143
|
-
var
|
|
1143
|
+
p("requiresAuth", [ln, un]);
|
|
1144
|
+
var dn = n({
|
|
1144
1145
|
frontendUrl: i().optional(),
|
|
1145
1146
|
telemetry: n({
|
|
1146
1147
|
environment: i(),
|
|
1147
1148
|
samplingRate: s().min(0).max(1)
|
|
1148
1149
|
}).nullable()
|
|
1149
|
-
}),
|
|
1150
|
-
authMethods:
|
|
1150
|
+
}), fn = n({
|
|
1151
|
+
authMethods: cn,
|
|
1151
1152
|
deploymentBranding: ce.nullish(),
|
|
1152
|
-
deployment:
|
|
1153
|
+
deployment: dn.optional()
|
|
1153
1154
|
});
|
|
1154
|
-
p("requiresAuth", [
|
|
1155
|
+
p("requiresAuth", [ln.extend(fn.shape), un.extend(fn.shape)]), n({
|
|
1155
1156
|
id: m(),
|
|
1156
1157
|
limited: d(),
|
|
1157
1158
|
agentIds: c(m())
|
|
1158
1159
|
});
|
|
1159
|
-
var
|
|
1160
|
+
var pn = n({
|
|
1160
1161
|
userId: m(),
|
|
1161
1162
|
name: i(),
|
|
1162
1163
|
email: i(),
|
|
@@ -1167,7 +1168,7 @@ var fn = n({
|
|
|
1167
1168
|
});
|
|
1168
1169
|
n({
|
|
1169
1170
|
id: m(),
|
|
1170
|
-
members: c(
|
|
1171
|
+
members: c(pn)
|
|
1171
1172
|
}), n({
|
|
1172
1173
|
id: m(),
|
|
1173
1174
|
userIds: c(m())
|
|
@@ -1189,6 +1190,6 @@ n({
|
|
|
1189
1190
|
..._.fullText(),
|
|
1190
1191
|
..._.ids()
|
|
1191
1192
|
});
|
|
1192
|
-
export { k as A, _ as B,
|
|
1193
|
+
export { k as A, _ as B, Vt as C, Ae as D, je as E, de as F, _e as I, ge as L, xe as M, be as N, ke as O, ve as P, ue as R, wt as S, Ie as T, Qt as _, mt as a, vt as b, X as c, Zt as d, ht as f, St as g, bt as h, q as i, Ce as j, Te as k, Y as l, _t as m, W as n, B as o, Ut as p, Gt as r, G as s, gt as t, yt as u, Dt as v, A as w, xt as x, Wt as y, g as z };
|
|
1193
1194
|
|
|
1194
|
-
//# sourceMappingURL=Agent-
|
|
1195
|
+
//# sourceMappingURL=Agent-DMvYDpLa.js.map
|